﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsApp1
{
    public class Car
    {
        private int _modelNo;
        private double _price;

        public int Model
        {
            set { _modelNo = value; }
            get { return _modelNo; }
        }
        public double Price
        {
            set
            {
                if (_modelNo == 100)
                    _price = value + 500;
                else
                    _price = value;

            }
            get { return _price; }
        }

        public void Show()
        {
           //code    
        }
    }
}




